<div class="categories">
   <h1 class="categories_title">
      DANH MỤC
   </h1>
   <ul class="categories_parent">
   <?
   $product_categories = product_cat(0);
   foreach($product_categories as $cat){
      $product_categories_child = product_cat($cat['cat_id']);
   ?>
      <li class="categories_parent_li">
         <a href="<?=generate_product_cat_url($cat)?>"><?=$cat['cat_name']?></a>
            <?if($product_categories_child != NULL){?>
               <ul class="categories_child">
            <?
            foreach($product_categories_child as $cat_child){
               $product_categories_child_child = product_cat($cat_child['cat_id']);
            ?>
            
               <li class="categories_child_li">
                  <a href="<?=generate_product_cat_url($cat_child)?>" class="<?=($product_categories_child_child  != NULL) ? 'has_child':''?>"><?=$cat_child['cat_name']?></a>
                  <?if($product_categories_child_child  != NULL){
                     ?>
                     <ul class="categories_child_child" style="display: none;">
                     <?
                     foreach($product_categories_child_child as $cat_child_child){
                  ?>
                     
                         <li class="categories_child_child_li">
                           <a href="<?=generate_product_cat_url($cat_child_child)?>"><?=$cat_child_child['cat_name']?></a>
                           
                         </li>
                         <? } ?>
                     </ul>
                  <? }?>
               </li>
               <? } ?>
            </ul>
         <? } ?>
      </li>
   <? } ?>
   </ul>
</div>
<div class="support_online">

   <div class="chat">
      <a href="ymsgr:sendim?<?=$support_online['spo_yahoo']?>">
         <img src="http://opi.yahoo.com/online?u=<?=$support_online['spo_yahoo']?>&m=g&t=14" alt="Yahoo" border=0 height="46" width="46" >
      </a>
      <p>YAHOO</p>
   </div>
   <div class="chat">
      <a href="Skype:<?=$support_online['spo_skype']?>?chat"> <img src="http://mystatus.skype.com/balloon/<?=$support_online['spo_skype']?>" title="Skype" width="51" height="44" alt=""> </a>
      <p style="margin-top: 2px;">SKYPE</p>
   </div>
   <div class="chat">
      <img src="<?=TEMPLATE_PATH?>images/livechat.jpg"/>
      <p style="margin-top: 1px;">LIVE CHAT</p>
      <!--Start of Zopim Live Chat Script-->
      <script type="text/javascript">
      window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=
      d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.
      _.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute('charset','utf-8');
      $.src='//v2.zopim.com/?21ouTevQ8CVEv1fmT3ZbJGKwD4FMbEeL';z.t=+new Date;$.
      type='text/javascript';e.parentNode.insertBefore($,e)})(document,'script');
      </script>
      <!--End of Zopim Live Chat Script-->
      
   </div>
   <p class="tuvanbanhang">TƯ VẤN BÁN HÀNG: <span style="color: #cc0404;"><?=$support_online['spo_consulting_phone']?></span></p>
   <p class="tuvanbanhang">HOTLINE: <span style="color: #cc0404;"><?=$support_online['spo_hotline']?></span></p>
   <p class="tuvanbanhang">FAX: <?=$support_online['spo_fax']?></span></p>
   <p class="tuvanbanhang">EMAIL: <?=$support_online['spo_email']?></span></p>
</div>
<div class="request_quote">
   <h1 class="pro_hot_title">
      YÊU CẦU BÁO GIÁ
   </h1>
   <form class="request_quote_form" action="/yeu-cau-bao-gia.html" method="POST">
      <label lb="1" class="label">Mã sản phẩm 1 <input type="text" name="pro_code[]" value=""/></label>
      <label lb="2" class="label">Mã sản phẩm 2 <input type="text" name="pro_code[]" value=""/></label>
      <p class="add_more" onclick="return add_more();">Thêm</p>
      <input type="submit" class="submit" value="GỬI ĐI"/>
   </form>
</div>
<div class="statistics_visit">
   <h1 class="pro_hot_title">
      THỐNG KÊ TRUY CẬP
   </h1>
   <p>Lượt truy cập : <span style="color: #1574bc;"><?=$accsess_total?></span></p>
   <p>Trực tuyến : <span style="color: #1574bc;"><?=$access_user?></span></p>
   <!--<h3>Đang truy cập: <span><?=$access_user?></span></h3>
   <h3>Truy cập hôm nay: <span><?=$accsess_day?></span></h3>
   <h3>Truy cập tháng qua: <span><?=$accsess_month?></span></h3>
   <h3>Tổng truy cập: <span><?=$accsess_total?></span></h3>-->
</div>